package linkedtoqueue;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * 测试队列
 */
public class Test {
    public static void main(String[] args) {
        LinkedQueue linkedQueue = new LinkedQueue();
        linkedQueue.offer(1);
        linkedQueue.offer(2);
        linkedQueue.offer(3);
        linkedQueue.offer(4);
        linkedQueue.offer(5);
        while (linkedQueue.size() != 0){
            System.out.println(linkedQueue.poll());
        }
    }
}
